﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SharpShare.Afp.Configuration {
    public class AfpUamConfigurationElementCollection : ConfigurationElementCollection {
        public void Add(Type uamType) {
            this.BaseAdd(new AfpUamConfigurationElement() { Type = uamType });
        }
        public void Remove(Type uamType) {
            this.BaseRemove(uamType);
        }

        protected override ConfigurationElement CreateNewElement() {
            return new AfpUamConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element) {
            return ((AfpUamConfigurationElement)element).Type;
        }
    }
}
